cmake_minimum_required(VERSION 3.19)

project(RacingHUD LANGUAGES CXX)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

find_package(Qt6 REQUIRED COMPONENTS Core Qml Quick Widgets)

set(RESOURCES ${RESOURCES}
    qml/RacingHUD.qrc
)

add_executable(${PROJECT_NAME} ${SOURCES} ${RESOURCES})

add_subdirectory(src)

target_link_libraries(${PROJECT_NAME} Qt6::Core Qt6::Qml Qt6::Quick Qt6::Widgets)